package com.entity;

import java.io.Serializable;

/**
 * servicetype
 * @author 
 */
public class Servicetype implements Serializable {
    private Integer servicetypeid;

    private String servicetype;

    private static final long serialVersionUID = 1L;

    public Integer getServicetypeid() {
        return servicetypeid;
    }

    public void setServicetypeid(Integer servicetypeid) {
        this.servicetypeid = servicetypeid;
    }

    public String getServicetype() {
        return servicetype;
    }

    public void setServicetype(String servicetype) {
        this.servicetype = servicetype;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Servicetype other = (Servicetype) that;
        return (this.getServicetypeid() == null ? other.getServicetypeid() == null : this.getServicetypeid().equals(other.getServicetypeid()))
            && (this.getServicetype() == null ? other.getServicetype() == null : this.getServicetype().equals(other.getServicetype()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getServicetypeid() == null) ? 0 : getServicetypeid().hashCode());
        result = prime * result + ((getServicetype() == null) ? 0 : getServicetype().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", servicetypeid=").append(servicetypeid);
        sb.append(", servicetype=").append(servicetype);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}